home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
graphics
/
circuit_macros
/
examples
/
ex5.m4
< prev
next >
Wrap
Text File
|
1994-03-13
|
2KB
|
69 lines
.PS
define(`HOMELIB_',`/u/aplevich/lib')
ifdef(`dline',,`include(HOMELIB_/darrow.m4)')
del = 0.2
dx = 0.1
circlerad = boxht*3/8
indel = boxht/3
fillval = 0.8
B1:[ down_
S1:box fill_ "$\bar{\mbox{C}}$"
S2:box fill_ with .nw at S1.se+(dx,-dx) "C"
dline(down_ dx)
dright
{Sum: circle with .c at (S1,Here)-(indel/2,0)}
darrow(to Sum.e)
NW: S1.nw+(-del,dx)
SE: (S2.e,Sum.s)+(del,-dx)
right_; shadebox(box wid SE.x-NW.x ht NW.y-SE.y with .nw at NW)
move to S1.s+(indel/2,0)
dline(to (Here,S2),,t); dleft; darrow(to S2.w)
darrow(from (Sum,S1.s) to Sum.n)
move to (SE,S2)+(del,0)
left_; "\bf u" ljust
{box invis fill_(1) ht dlinewid wid 2*del-dx with .e at Here+(-dx,0)}
dend ; darrow(to S2.e)
move to Sum.w+(0.01,0); left_
{box invis fill_(1) ht dlinewid wid linewid with .e at Here+(-dx,0)}
darrow(to (NW,Sum)-(del,0))
"{\bf y}$-${\bf D}{\bf u}" rjust at Here+(del,del*3/4)
]
box invis wid del ht del "(a)" at last [].s+(0,-del)
[ down_
S1:box fill_ "$\bar{\mbox{O}}$"
S2:box fill_ with .nw at S1.se+(dx,-dx) "O"
dline(from S2.n to (S2,S1)-(0,indel/2),,t)
up_; dleft
darrow(to (S1.e,Here))
NW: S1.nw+(-del,del)
SE: S2.se+(2*del,-del-dx)
right_; shadebox(box wid SE.x-NW.x ht NW.y-SE.y with .nw at NW)
move to (SE,S1)+(del,indel/2); left_
{box invis fill_(1) ht dlinewid wid 2*del}
{"{\bf u}" ljust} ; dend ; dline(left_ 2*del,,t)
dtee(`up_')
{darrow(to (S1.e,Here),t)}
dline(to (Here,S2),t,t)
down_;dright
darrow(to S2.e)
dline(from S2.s down_ dx)
dright
L: (NW,Here)-(del,0)
{box invis fill_(1) wid Here.x-L.x ht dlinewid}
darrow(to L)
"{\bf y}$-${\bf D}{\bf u}" rjust at Here+(del,del*3/4)
] with .sw at B1.se + (boxwid/2,0)
box invis wid del ht del "(b)" at last [].s+(0,-del)
.PE